package Inheritance;

class Base2 {
    public void testA() {
        System.out.println("Base2 testA");
    }
}

class Derived2 extends Base2 {
    public void testA() {
        System.out.println("Derived2 testA");
    }
    public void testB() {
        System.out.println("Base2 testB");
    }
    public void testC() {
        this.testA();
        super.testA();
        testB();
    }
}

public class Test4 {
    public static void main(String[] args) {
        Derived2 derived2=new Derived2();
        derived2.testC();
    }
}
